<?php
// +----------------------------------------------------------------------
// | 跃飞 [ 将来的你一定会感激现在奋斗的自己 ]
// +----------------------------------------------------------------------
// | Author: 钟贵廷
// +----------------------------------------------------------------------
// | Author URI: https://git.oschina.net/yeafy
// +----------------------------------------------------------------------
// | weChat:gt845272922  qq:845272922
// +----------------------------------------------------------------------


namespace app\home\controller;


use app\yeafy\simpleFactory\demo3\OrderFactory;
use think\Controller;

class SimpleFactory extends Controller
{
    /**
     * @desc:简单工厂实现tomrepair创建订单
     * @author 钟贵廷
     * @WeChat gt845272922
     * @qq 845272922
     */
    public function order()
    {
        OrderFactory::getInstance('repair')->create();
        OrderFactory::getInstance('refurbish')->create();
    }
}